package top.hongthorn.service;


import top.hongthorn.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import top.hongthorn.util.Result;

import java.util.Map;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author 泓宇网络科技工作室
 * @since 2023-12-23 21:11:10
 */
public interface UserService extends IService<User> {

    public Result login(String username, String password);

    public Result register(String username, String password);

    public Result updateUserPassword(String username, String password, String newPassword);

    public Result addUser(User user);

    public Map userPage(Integer startIndex, Integer pageIndex);

    public Result userState(Integer state, Integer id);

    public Result deleteUser(Integer id);

    public Result updateUserInfo(User user);

}